package com.kgc.onlineLife.service.impl;

import com.kgc.onlineLife.mapper.PageMapper;
import com.kgc.onlineLife.service.PageService;
import com.kgc.onlineLife.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created On : 2022/4/16.
 * <p>
 * Author     : nainai
 * <p>
 * Description: PageServiceImpl
 */
@Service
public class PageServiceImpl implements PageService {

    @Autowired
    private PageMapper pageMapper;

    @Override
    public Page queryPage(String tName) {
        return pageMapper.selectPage(tName);
    }

    @Override
    public Page queryPageByName(String name, String tname) {
        return pageMapper.selectPageByName(name, tname);
    }

}
